<?php include 'Funcoes/conexao.php';
  $busca=ibase_query("Select * from GARCON Where(STATUS) = 0");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Automação de Restaurante - Login</title>
<link href="CSS/Style.css" rel="stylesheet" type="text/css" media="all" />
<style type="text/css">
<!--
#form1 #logindiv {
	color: #00F;
}
-->
</style>
</head>

<body>
<form id="form1" name="form1" method="post" action="logar.php">
<div id="logindiv">
<div id="topo">Automação de Restaurantes</div>
  Versao: 1.0.0<br />
  <img src="imagens/fran11.jpg" width="200" height="100" />
<br />
  <div id="loginnome" align="center">
    <table width="200" border="0">
      <tr>
        <td>Usuario:</td>
        <td>
          <label>
            <select name="login" id="login">
              <?php

				while ($reg=ibase_fetch_assoc($busca))
				{
			         echo"<option selected='selected'>".$reg['APELIDO']."</option>";

                }

						echo"<option selected='selected'></option>";
			?>
            </select>
          </label></td>
        </tr>
      <tr>
        <td>Senha:</td>
        <td>
          <label>
            <input name="senha" type="password" id="senha" />
            </label>
          </td>
        </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input name="ok" type="submit" value="Entrar" /></td>
        </tr>
      </table>
  </div>
</div>
</form>
</body>
</html>
